package com.yazi.mxz.common.db.dao.impl;


import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.yazi.mxz.common.db.dao.OrderGoodsDao;
import com.yazi.mxz.common.entity.beans.OrderGoods;

import com.myframework.smhj.hibernate.dao.BasicDao;

@Repository("orderGoodsDao")
public class OrderGoodsDaoImpl extends BasicDao<OrderGoods> implements OrderGoodsDao {


	public OrderGoodsDaoImpl() {
		super(OrderGoods.class);
		
	}

	@Override
	public int deleteByOrderId(Long orderId) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("orderId", orderId);
		return executeUpdate("delByOrderIdHql", map);
		
	}

}
